SquareFreeQ
SquareFreeQ[expr] gives True if expr is a square-free polynomial or number, and False otherwise.
SquareFreeQ[expr,vars] gives True if expr is square free with respect to the variables vars.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.